#ifndef GLWINDOW_H_INCLUDED
#define GLWINDOW_H_INCLUDED

// #include <SDL/SDL.h>
#include "src/utils/settings.h"

class GLWindow {

	public:
		GLWindow();
		~GLWindow();

		void create(const char* const title, const unsigned int width, const unsigned int height);
		void createSafe(const char* const title, const unsigned int width, const unsigned int height);

		//	Destroy window and OpenGL Context, close the Display
// 		void destroy();
		void process();

	private:
		//	Resize Window
		void resize();
		void toggleFs();
		unsigned int w_bpp;		// Bits Per Pixel. With XFree86, highest = 24
		int w_width;
		int w_height;
		int n_width;
		int n_height;
		unsigned int fs;
		const SDL_VideoInfo* vidInfo;
		SDL_Surface* surface;
		int vidFlags;
		bool hwaccel;
		const unsigned int* settingsfs;
		int mousex;
		int mousey;
		SDL_Event event;
};

#endif	// GLWINDOW_H
